package test.util.file;

import org.webscale.util.file.CSVLineProcessor;
import org.webscale.util.file.ProcessingResult;
import org.webscale.util.file.SummaryStats;

public class CustomCSVProcessor extends CSVLineProcessor {
	SummaryStats stat;
	ProcessingResult result = new ProcessingResult();
	public CustomCSVProcessor(){
		super();
	}
	
	public boolean isValidInput() {
		return true;
	}

	public boolean isLineFiltered(){
		return false;
	}
	
	public String transform() {
		String[] input = super.getInput();
		String res = "";
		for(int i =0 ; i < input.length ; i++){
			res += input[i] + " : ";
		}
		return res;
			
	}

	public ProcessingResult getProcessingResult() {
		return result;
	}

	public void setSummaryStat(SummaryStats summary) {
		stat = summary;

	}

	

}
